<?php $itemsThumbnail = $this->dataThumbnail;  ?>

<div class="mainpage">
<form method="post" enctype="multipart/form-data">
    <div class="top-tools">
        <?php echo $this->flashMessenger()?>
        <a href="/admin/cruise" class="exit  btn " ><i class="icon-hand-left hint" data-hint-msg="Quay lại"></i></a>
        <div class="clear"></div>
    </div>

    <div class="row-fluid">
		<!-- Thumbnail -->
        <div class="span6">
            <h3>Ảnh thu nhỏ</h3>
            <?php if(!$itemsThumbnail || $itemsThumbnail['path'] === null):?>
                <div class="alert alert-info alert-block">
                <a class="close" data-dismiss="alert">×</a>
                <h4 class="alert-heading">Chưa có ảnh</h4>
                Chưa có ảnh đại diện nào, hãy chọn ảnh và danh mục để bắt đầu thêm bức ảnh đầu tiên
                </div>
            <?php endif; ?>
            <div class="thumbnail">
                <a href="<?php echo $itemsThumbnail['path']; ?>" class="">
            	   	<img src="<?php echo $itemsThumbnail['path']; ?>"  alt="" />
                </a>
                <div class="caption">Thumbnail</div>
                <a href="<?php echo $itemsThumbnail['path_detail']; ?>" class="">
            	   	<img src="<?php echo $itemsThumbnail['path_detail']; ?>"  alt="" />
                </a>
                <div class="caption">Photo show in detail page</div>
            </div>
        </div>
        <div class="span6">&nbsp;</div>
        <div class="span5 well form-horizontal">
            <div class="control-group">
                <label class="control-label"> Photo </label>
                <div class="controls">
                    <input type="file" name="thumbnail" />
                </div>
            </div>
            <div class="control-group">
                <label class="control-label"> Category </label>
                <div class="controls">
            <?php
            	echo $this->formSelect('photo_type', '', null,
            							array(
            								Admin_PhotoManagementController::TYPE_THUMBNAIL => 'Hình thu nhỏ'
            							));
            ?>
                </div>
            </div>
            <div class="form-action-group">
                <input type="submit" style="width:200px" class="btn btn-primary" name="upload" value="Upload"/>
            </div>
        </div>
    </div>

    <div class="clear"></div>
</form>
</div>